package com.pz.cloud.framework.business.workflow.enums;

/**
 * 工作流变量枚举
 * @author 3hmzz
 */
public enum WorkflowEnum {

    TITLE,NUMBER
    ;
    WorkflowEnum() {
    }

//    public enum Operation{
//        流程开启("start"),流程提交("submit");
//        Operation(String action){
//            this.action = action;
//        }
//        private String action;
//
//        public String getAction() {
//            return action;
//        }
//
//        public void setAction(String action) {
//            this.action = action;
//        }
//    }
    /**
     * 待办任务状态
     */
    public enum WaitDoneStatus{
        已完成(1),未完成(0);
        private Integer status;
        WaitDoneStatus(Integer status) {
            this.status = status;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }
    }

    /**
     * 流程状态
     */
    public enum ProcessStatus{
        未开启(0),流程中(1),流程结束(10),流程退回(-1);
        private Integer status;
        ProcessStatus(Integer status) {
            this.status = status;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }
    }
    /**
     * 节点处理人类型
     */
    public enum TaskNodeHandlerType{
        用户("user"),部门("dept"),角色("role"),部门内角色("deptInRole"),职务("post"),部门内职务("deptInPost");
        private String type;
        TaskNodeHandlerType(String type) {
            this.type = type;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }}

    /**
     * 待办类型
     */
    public enum WaitDoneSource{
        activiti,notice
    }
}
